package jbl.action;

import jbl.pageModel.CountTda;
import jbl.service.CountTdaServiceI;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ModelDriven;

/**
 * @author admin
 * 档案调阅货架输出 模拟实物货架
 */
@Namespace("/")
@Action(value="countTdaAction")
public class CountTdaAction extends BaseAction  implements ModelDriven<CountTda>{
	private CountTda countTda = new CountTda();
	private CountTdaServiceI countTdaService;
	@Autowired
	public void setCountTdaService(CountTdaServiceI countTdaService) {
		this.countTdaService = countTdaService;
	}
	@Override
	public CountTda getModel() {
		return countTda;
	}
	/**
	 * 档案调阅  return DataDaGird 
	 */
	public void getCountData(){
		writeJson(countTdaService.getCountData(countTda));
	}
}
